{% extends "base.html" %}

{% block content %}
<div class="page-container">
		<div class="row breadcrumbs margin-bottom-40">
            <div class="container">
                <div class="col-md-4 col-sm-4">
                    <h1>搜索结果</h1>
                </div>
                <div class="col-md-8 col-sm-8">
                    <ul class="pull-right breadcrumb">
                        <li><a href="/">主页</a></li>
                        <li><a href="">Pages</a></li>
                        <li class="active">Blog Page</li>
                    </ul>
                </div>
            </div>
        </div><!-- end breadcrumbs -->
<div class="container min-hight">
	<div class="row margin-bottom-40">
		<div class="col-md-12 col-sm-12">
		<div class="row search-form-default">
            <form class="form-inline" action="#">
                   <div class="input-group">
                       <div class="input-cont">   
                          <input placeholder="Search..." class="form-control" type="text">
                       </div>
                       <span class="input-group-btn">
                       <button class="btn btn-default theme-btn" type="submit">Send <i class="m-icon-swapright m-icon-white"></i></button>
                       </span>    
                   </div>
               </form>
           </div><!--end search  -->
           <div class="search-result-item">
           	{% if error %}
			<h4 class="post-title">没有相关文章题目</a></h4>
			{% else %}
			{% for post in post_list%}
			<section class="post">
			<header class="post-header">
			
				<h2 class="post-title">
					<a href="{% url 'detail' id=post.id %}">{{post.title}}</a>
				</h2>
				<p>{{ post.content|truncatewords:"10" }}</p>
				<p class="search-link">
					Time:<a class="post-author" href="#">{{post.date_time|date:'Y/m/d'}}</a>
				</p>
			</header>
				</section>
			{% endfor %}
			{% endif %}
			
			
              </div><!--end search-result-item  -->
		</div>
	</div>

</div><!-- end container -->
</div>

{% endblock %}